export function filterAsyncRouter(checkedRouter) { // 遍历后台传来的路由字符串，转换为组件对象
  const accessedRouters = checkedRouter.filter(route => {
    console.log('route', route)

    // if (route.component) {
    //     route.component = _import(route.component)
    // }
    // if (route.children && route.children.length) {
    //   route.children = filterAsyncRouter(route.children)
    // }
  })
  return accessedRouters
}
